package  
{
	import adobe.utils.CustomActions;
	import org.flixel.FlxSprite;
	
	/**
	 * ...
	 * @author Jay Wagner
	 */
	public class Powerup extends FlxSprite 
	{
		protected var _floatMin:Number;
		protected var _floatMax:Number;
		
		public var isBattery:Boolean = false;
		
		public function Powerup(X:Number, Y:Number)
		{
			super(X, Y);
			
			_floatMin = Y - 3;
			_floatMax = Y + 3;
			
			velocity.y = -15;
		}
		
		override public function update():void
		{
			if (((y <= _floatMin) && (velocity.y < 0)) || ((y >= _floatMax) && (velocity.y > 0)))
			{
				velocity.y *= -1
			}
			
			super.update();
		}
		
		public function collect():void
		{
			// Do nothing
		}
		
		
	}

}